Component({
  data: {
    foldersStatus: {},
    btnStatus: false,
    select: []
  },
  properties: {
    editstatus: Boolean,
    folderListData: Object
  },
  methods: {
    selection(e) {
      var id = e.currentTarget.dataset.id
      this.setData({
        btnStatus: !this.data.btnStatus
      }, function () {
        console.log(this.data.btnStatus)
        let obj = this.data.foldersStatus
        obj[e.currentTarget.dataset.id] = this.data.btnStatus
        this.setData({
          foldersStatus: obj
        })
      })
    }
  }

})